package com.tuanzi.loan.business.repository.statistics.custom;

import com.tuanzi.loan.business.entity.family.ProductInfo;
import com.tuanzi.loan.vo.request.statistics.newonekey.NewOneKeyStatRequest;
import com.tuanzi.loan.vo.request.statistics.novice.NoviceStatRequest;
import com.tuanzi.loan.vo.response.statistics.newonekey.NewOneKeyStatDetailResponse;
import com.tuanzi.loan.vo.response.statistics.newonekey.NewOneKeyStatTotalResponse;
import com.tuanzi.loan.vo.response.statistics.novice.NoviceDetailStatResponse;
import com.tuanzi.loan.vo.response.statistics.novice.NoviceTotalStatResponse;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author caiwanlin
 * @create 2018-06-27 16:30
 */
public interface NewOneKeyStatRepositoryCustom {
    Page<NewOneKeyStatTotalResponse> totalList(NewOneKeyStatRequest newOneKeyStatRequest, Pageable pageable);

    Page<NewOneKeyStatDetailResponse> detailList(NewOneKeyStatRequest newOneKeyStatRequest, Pageable pageable);

    Page<NoviceTotalStatResponse> totalNoviceList(NoviceStatRequest noviceStatRequest,Pageable pageable);

    Page<NoviceDetailStatResponse> detailNoviceList(NoviceStatRequest noviceStatRequest,Pageable pageable);

    /**
     * 通过广告位id查找活动
     * @param spaceId
     * @return
     * @throws Exception
     */
    List<ProductInfo> getProductBySpaceId(Integer spaceId) throws Exception;
}
